﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Power.Models
{

    /// <summary>
    /// 检查井检查情况汇总表
    /// </summary>
    public class InspectTableData
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 检查井类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 子列
        /// </summary>
        public List<InspectTableBase> BaseValue { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class InspectTableBase
    {
        /// <summary>
        /// 材质
        /// </summary>
        public string Mat { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Number { get; set; }
        /// <summary>
        /// 其中非道路下数量
        /// </summary>
        public int NumberNoUnderRoad { get; set; }
        /// <summary>
        /// 完好数量
        /// </summary>
        public int NumberPerfect { get; set; }
        /// <summary>
        /// 井盖井座缺失数量
        /// </summary>
        public int NumberMissing { get; set; }
        /// <summary>
        /// 井内有杂物数量
        /// </summary>
        public int NumberWithThings { get; set; }
        /// <summary>
        /// 井内有缺陷数量
        /// </summary>
        public int NumberWithDefent { get; set; }
        /// <summary>
        /// 盖框突出或缺损数量
        /// </summary>
        public int NumberHatDefent { get; set; }
        /// <summary>
        /// 井室周围填土有沉降数量
        /// </summary>
        public int NumberWithSick { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public String Remark { get; set; } = "-";

        public InspectTableBase() { }
        public InspectTableBase(int number, int numberNoUnderRoad, int numberPerfect, int numberMissing,
            int numberWithThings, int numberWithDefent, int numberHatDefent, int numberWithSick, string remark)
        {
            Number = number;
            NumberNoUnderRoad = numberNoUnderRoad;
            NumberPerfect = numberPerfect;
            NumberMissing = numberMissing;
            NumberWithThings = numberWithThings;
            NumberWithDefent = numberWithDefent;
            NumberHatDefent = numberHatDefent;
            NumberWithSick = numberWithSick;
            Remark = remark == "" ? "-" : remark;
        }
    }
}
